package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Location;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * 地址的 dao层
 */
public interface LocationDao {
    List<Location> findAll();

    Page<Location> queryPage(@Param("queryString") String queryString);

    void addLocation(Location location);


    Integer findLocationIdByLocation(String location);

    void deleteById(Integer locationId);

    Location findLocationByLocationName(String location);
}
